documentation
[lhc/web/wiklou.git] / includes / BagOStuff.php
index 7e48fb0..8aa8201 100644 (file)
@@ -293,14 +293,14 @@ class SqlBagOStuff extends BagOStuff {
                return $str;
        }
        function _doinsert($table, $vals) {
-               die( 'abstract function SqlBagOStuff::_doinsert() must be defined' );
+               wfDie( 'abstract function SqlBagOStuff::_doinsert() must be defined' );
        }
        function _doquery($sql) {
-               die( 'abstract function SqlBagOStuff::_doquery() must be defined' );
+               wfDie( 'abstract function SqlBagOStuff::_doquery() must be defined' );
        }
 
        function _fetchrow($res) {
-               die( 'abstract function SqlBagOStuff::_fetchrow() must be defined' );
+               wfDie( 'abstract function SqlBagOStuff::_fetchrow() must be defined' );
        }
 
        function _freeresult($result) {
@@ -314,11 +314,11 @@ class SqlBagOStuff extends BagOStuff {
        }
 
        function _maxdatetime() {
-               die( 'abstract function SqlBagOStuff::_maxdatetime() must be defined' );
+               wfDie( 'abstract function SqlBagOStuff::_maxdatetime() must be defined' );
        }
 
        function _fromunixtime() {
-               die( 'abstract function SqlBagOStuff::_fromunixtime() must be defined' );
+               wfDie( 'abstract function SqlBagOStuff::_fromunixtime() must be defined' );
        }
 
        function garbageCollect() {
@@ -373,7 +373,6 @@ class SqlBagOStuff extends BagOStuff {
                                $serial = $decomp;
                        }
                }
-               wfdebug("serial: [$serial]\n");
                $ret = unserialize( $serial );
                return $ret;
        }
@@ -425,10 +424,10 @@ class MediaWikiBagOStuff extends SqlBagOStuff {
        function getTableName() {
                if ( !$this->tableInitialised ) {
                        $dbw =& wfGetDB( DB_MASTER );
-                       /* This is actually a hack, we should be able 
+                       /* This is actually a hack, we should be able
                           to use Language classes here... or not */
                        if (!$dbw)
-                               die("Could not connect to database");
+                               wfDie("Could not connect to database");
                        $this->table = $dbw->tableName( $this->table );
                        $this->tableInitialised = true;
                }